var e = require;
var t = module;
var o = exports;
var n,
    i =
        (this && this.__extends) ||
        ((n = function (e, t) {
            return (n =
                Object.setPrototypeOf ||
                ({__proto__: []} instanceof Array &&
                    function (e, t) {
                        e.__proto__ = t;
                    }) ||
                function (e, t) {
                    for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
                })(e, t);
        }),
        function (e, t) {
            n(e, t);
            function o() {
                this.constructor = e;
            }
            e.prototype = null === t ? Object.create(t) : ((o.prototype = t.prototype), new o());
        }),
    r =
        (this && this.__decorate) ||
        function (e, t, o, n) {
            var i,
                r = arguments.length,
                a = r < 3 ? t : null === n ? (n = Object.getOwnPropertyDescriptor(t, o)) : n;
            if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, o, n);
            else
                for (var c = e.length - 1; c >= 0; c--)
                    (i = e[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(t, o, a) : i(t, o)) || a);
            return r > 3 && a && Object.defineProperty(t, o, a), a;
        };
Object.defineProperty(o, "__esModule", {value: !0});
var a = e("UIConfig"),
    c = e("UIManager"),
    u = (e("UIDefine"), cc._decorator),
    s = u.ccclass,
    p = u.property,
    d = u.menu,
    l = (function (e) {
        i(t, e);
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            t._uiNameArr = [""];
            return t;
        }
        Object.defineProperty(t.prototype, "emUiSelectArr", {
            get: function () {
                for (var e = [], t = 0, o = this._uiNameArr; t < o.length; t++) {
                    var n = o[t];
                    e.push(a.UIID[n] || -1);
                }
                return e;
            },
            set: function (e) {
                this._uiNameArr = [];
                for (var t = 0, o = e; t < o.length; t++) {
                    var n = o[t];
                    this._uiNameArr.push(a.UIID[n]);
                }
            },
            enumerable: !1,
            configurable: !0
        });
        Object.defineProperty(t.prototype, "jump", {
            get: function () {
                return !1;
            },
            set: function () {},
            enumerable: !1,
            configurable: !0
        });
        t.prototype.start = function () {
            this.openUI();
        };
        t.prototype.openUI = function () {
            for (var e = 0, t = this._uiNameArr; e < t.length; e++) {
                var o = t[e];
                void 0 !== o && o.length > 0 && c.default.open(c.default.getUiid(o));
            }
        };
        r([p()], t.prototype, "_uiNameArr", void 0);
        r([p({type: [cc.Enum(a.UIID)]})], t.prototype, "emUiSelectArr", null);
        r([p()], t.prototype, "jump", null);
        return r([s, d("Common/UI/UIAutoOpen")], t);
    })(cc.Component);
o.default = l;
